<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div id="div01">水电费水电费</div>
	</body>
</html>

<script>
	 var divobj = document.getElementById('div01');
	 alert(divobj.nodeName);
	 alert(divobj.nodeType);
	 alert(divobj.nodeValue);
	 alert(divobj.textContent);
</script>
